/**
 * 
 */
package br.com.ctm.guiamedico.negocio.impl;

import java.util.List;

import javax.annotation.security.PermitAll;
import javax.ejb.Stateless;
import javax.inject.Inject;
import javax.persistence.PersistenceException;

import br.com.ctm.guiamedico.dao.api.MedicoDao;
import br.com.ctm.guiamedico.model.Medico;
import br.com.ctm.guiamedico.negocio.api.MedicoNegocio;
import br.com.framework.negocio.impl.BaseNegocioImpl;

/**
 * @author Cleber
 *
 */
@Stateless
@PermitAll
public class MedicoNegocioImpl extends BaseNegocioImpl<Medico, MedicoDao> implements
		MedicoNegocio {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	public MedicoNegocioImpl() {
	}
	
	@Inject
	protected void setDao(MedicoDao dao) {
		super.setDao(dao);
	}

	@Override
	public Long getCountMedicosIncluidosNaVersao(Long numeroVersao)
			throws PersistenceException {
		return getDao().getCountMedicosIncluidosNaVersao(numeroVersao);
	}

	@Override
	public List<Medico> getMedicosIncluidosNaVersao(Long numeroVersao,
			int firstResult, int maxResults) throws PersistenceException {
		return getDao().getMedicosIncluidosNaVersao(numeroVersao, firstResult, maxResults);
	}

	@Override
	public Long getCountMedicosRemovidosNaVersao(Long numeroVersao)
			throws PersistenceException {
		return getDao().getCountMedicosRemovidosNaVersao(numeroVersao);
	}

	@Override
	public List<Medico> getMedicosRemovidosNaVersao(Long numeroVersao,
			int firstResult, int maxResults) throws PersistenceException {
		return getDao().getMedicosRemovidosNaVersao(numeroVersao, firstResult, maxResults);
	}

	


}
